package com.ibm.android.camera;

import java.io.IOException;

import android.hardware.Camera.Parameters;
import android.view.SurfaceHolder;

/**
 * Small wrapper around android.hardware.Camera.
 * 
 * @author Bertjan Broeksema
 */
public interface ICamera {

	void setPreviewDisplay(SurfaceHolder holder) throws IOException;
	
	Parameters getParameters();

	void setParameters(Parameters p);
	
	void setOneShotPreviewCallback(PreviewCallback mPreviewCallback);
	
	void setPreviewCallback(PreviewCallback callback);
	
	void startPreview();
	
	void stopPreview();

	void open();

	void release();
}